﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Superstore.Vender.Models;

namespace Superstore.Vender.Controllers
{
    public class OrderInfoController : Controller
    {
        // GET: OrderInfo
        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public PartialViewResult ShowGoodsList(OrderInfo orderInfo, int orderType, int pickType)
        {
            if ((null != orderInfo) && (null != orderInfo.goods_info) && (orderInfo.goods_info.Count > 0))
            {
                ViewBag.OrderStatus = orderType;
                ViewBag.PickType = pickType;
                return PartialView("ShowGoodsList", orderInfo.goods_info);
            }
            return PartialView("ShowGoodsList");
        }
    }
}